package cn.tmall.system.impl;


import cn.tmall.IExpressService;
import cn.tmall.commons.service.impl.BaseServiceImpl;
import cn.tmall.entity.system.Express;
import cn.tmall.dao.system.ExpressRepository;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.apache.dubbo.config.annotation.Service;

/**
 * @author YANG
 */
@Service
public class ExpressServiceImpl extends BaseServiceImpl<Express,Long, ExpressRepository> implements IExpressService {
    private Logger logger = LoggerFactory.getLogger(getClass());
    @Autowired
    private ExpressRepository expressRepository;

    @Override
    public void changeDisabled(Long id, Boolean disabled) {
        Express express = get(id);
        express.setDisabled(disabled);
        update(express);
    }
}

